<html>
<head>
<script>
function setCookie() {
  document.cookie = 'foo=baz';
}
</script>
</head>
<body onload="setCookie();">
</body>
</html>
